﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Aribaccio
{
    /// <summary>
    /// 视图基类[自定义]
    /// </summary>
    public class NotificationModel: NotificationObject
    {
        /// <summary>
        /// 执行命令行为，并处理异常
        /// </summary>
        /// <param name="parameter"></param>
        /// <param name="action"></param>
        protected void ExecCommandAction(object? parameter, Action<object?> action)
        {
            try
            {
                action(parameter);
            }
            catch (Exception)
            {
               
            }
        }
    }
}
